package com.fare.taluo.vo.fetl;

import java.util.Date;

public class FreightMonitorVO {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;

	/**
	 * 航班号
	 */
	private String flightNo;

	/**
	 * 航班日期
	 */
	private Date flightDate;

	/**
	 * 抓取日期
	 */
	private Date grabDate;

	/**
	 * 当天抓取时，是第几次抓取
	 */
	private int grabNum;

	/**
	 * 该航班的舱位数量
	 */
	private int cabinNum;

	/**
	 * 当前的舱位数量与上一次抓取的舱位数量比较得出的数
	 *//*
	private int cabinNumForChange;*/
    
	private int cabinNumForAdd;
	private int cabinNumForDel;
	
	/**
	 * 最低价
	 */
	private double lowerPrice;

	/**
	 * 最高价
	 */
	private double higherPrice;

	/**
	 * 抓取渠道
	 */
	private String grabChannel;

	/**
	 * 抓取渠道hbaseKey
	 */
	private String grabChannelKey;

	/**
	 * 出发地三字码
	 */
	private String fromCity;

	/**
	 * 目的地三字码
	 */
	private String toCity;

	/**
	 * 出发地
	 */
	private String fromCityName;

	/**
	 * 目的地
	 */
	private String toCityName;

	/**
	 * 该记录对应hbase里的rowkey
	 */
	private String rowKey;

	public FreightMonitorVO(){}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFlightNo() {
		return flightNo;
	}

	public void setFlightNo(String flightNo) {
		this.flightNo = flightNo;
	}

	
	public Date getFlightDate() {
		return flightDate;
	}

	public void setFlightDate(Date flightDate) {
		this.flightDate = flightDate;
	}

	public Date getGrabDate() {
		return grabDate;
	}

	public void setGrabDate(Date grabDate) {
		this.grabDate = grabDate;
	}

	public int getGrabNum() {
		return grabNum;
	}

	public void setGrabNum(int grabNum) {
		this.grabNum = grabNum;
	}

	public int getCabinNum() {
		return cabinNum;
	}

	public void setCabinNum(int cabinNum) {
		this.cabinNum = cabinNum;
	}

	/*public int getCabinNumForChange() {
		return cabinNumForChange;
	}

	public void setCabinNumForChange(int cabinNumForChange) {
		this.cabinNumForChange = cabinNumForChange;
	}*/

	public double getLowerPrice() {
		return lowerPrice;
	}
	
	public int getIntLowerPrice(){
		return new Double(lowerPrice).intValue();
	}

	public void setLowerPrice(double lowerPrice) {
		this.lowerPrice = lowerPrice;
	}

	public double getHigherPrice() {
		return higherPrice;
	}
	public int getIntHigherPrice(){
		return new Double(higherPrice).intValue();
	}
	public void setHigherPrice(double higherPrice) {
		this.higherPrice = higherPrice;
	}

	public String getGrabChannel() {
		return grabChannel;
	}

	public void setGrabChannel(String grabChannel) {
		this.grabChannel = grabChannel;
	}

	public String getGrabChannelKey() {
		return grabChannelKey;
	}

	public void setGrabChannelKey(String grabChannelKey) {
		this.grabChannelKey = grabChannelKey;
	}

	public String getFromCity() {
		return fromCity;
	}

	public void setFromCity(String fromCity) {
		this.fromCity = fromCity;
	}

	public String getToCity() {
		return toCity;
	}

	public void setToCity(String toCity) {
		this.toCity = toCity;
	}

	public String getFromCityName() {
		return fromCityName;
	}

	public void setFromCityName(String fromCityName) {
		this.fromCityName = fromCityName;
	}

	public String getToCityName() {
		return toCityName;
	}

	public void setToCityName(String toCityName) {
		this.toCityName = toCityName;
	}

	public String getRowKey() {
		return rowKey;
	}

	public void setRowKey(String rowKey) {
		this.rowKey = rowKey;
	}

	public int getCabinNumForAdd() {
		return cabinNumForAdd;
	}

	public void setCabinNumForAdd(int cabinNumForAdd) {
		this.cabinNumForAdd = cabinNumForAdd;
	}

	public int getCabinNumForDel() {
		return cabinNumForDel;
	}

	public void setCabinNumForDel(int cabinNumForDel) {
		this.cabinNumForDel = cabinNumForDel;
	}
	
	public FreightMonitorVO cloneNoneMonitorVO(){
		FreightMonitorVO newvo = new FreightMonitorVO();
		newvo.setCabinNum(-1);
		newvo.setCabinNumForAdd(-1);
		newvo.setCabinNumForDel(-1);
		newvo.setFlightDate(this.getFlightDate());
		newvo.setFlightNo(this.getFlightNo());
		newvo.setFromCity(this.fromCity);
		newvo.setFromCityName(this.getFromCityName());
		newvo.setGrabChannel(this.getGrabChannel());
		newvo.setGrabChannelKey(this.getGrabChannelKey());
		newvo.setGrabDate(this.getGrabDate());
		newvo.setGrabNum(this.getGrabNum());
		newvo.setHigherPrice(-1);
		newvo.setLowerPrice(-1);
		
		return newvo;
	}
	
}
